/*
 * @Author: your name
 * @Date: 2021-09-29 15:08:58
 * @LastEditTime: 2022-04-20 11:50:19
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \FR5086_CM3Peripherals\examples\none_evm\ble_simple_peripheral\code\sd_dev_BT.H
 */
/**
  ******************************************************************************
  * @file    xxx.c 
  * @author  SD Electronics xxx
  * @version V1.0
  * @date    xx-xx-xx
  * @brief   xxxxxxxxxxxxxxxxxx.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _SD_DEV_BT_H
#define _SD_DEV_BT_H


/* Includes ------------------------------------------------------------------*/
#include "sd_common.h"

/** 
  * @brief 
  */ 
typedef struct
{
    uint8_t advData[32];
    uint16_t adv_interval;
}ST_BT_ADV,*PST_BT_ADV;

/**
  * @}
  */

/** 
  * @
  */
typedef struct
{
    uint8_t     txpower;
    uint8_t     dev_name[18];
    uint8_t     mac_addr[6];
    PST_BT_ADV  pstBTAdv;
    
    uint8_t     service_uuid[2];
    uint8_t     notify_uuid[2];
    uint8_t     write_uuid[2];
    
    uint8_t     security;
    uint32_t    pincode;          //!< Password.
    char*       FirmwareVersion;
}ST_BT_PARAM,*PST_BT_PARAM;

/** 
  * @
  */
typedef struct
{
	bool	bInitFlag;	        /*BT */
	PST_BT_PARAM	pstBTInfo;
}ST_BT_CTRL, *PST_BT_CTRL;  

/** 
  * @brief  cmd_parser_state_t
  */ 
typedef enum
{
	EN_BT_CTRL_NOTIFY,	
	EN_BT_CTRL_RECVAPP,
}EN_BT_CTRLCMD;



/**
  * @}
  */


#endif
/******************* (C) COPYRIGHT 2011 ShenZhenShiding electronics **************************/
